import java.nio.charset.StandardCharsets;
import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 马拉圈
 * Date: 2023-04-02
 * Time: 16:40
 */
public class Test1 {

    public static void main(String[] args) {
        byte[] bytes = {1, 2, 3 ,4, 5, 6 ,7, 8, 9 ,10};
        String str = new String(bytes, 0, bytes.length);
        byte[] bytes1 = str.getBytes();
        System.out.println(Arrays.toString(bytes1));
        //内部自己去把这个字节转化为二进制就好

    }
}
